e.Toscana Compliance 
Request for Comments:  
Del: 18/02/2009 
Categoria: Applicativa
Destinatari: Regione Toscana, Estav,Fornitori di Estav

Dematerializzazione ed invio telematico del DDT come parte dell'attivit di dematerializzazione dell'intero ciclo dell'ordine a fornitore

Indice
------
1. Contesto di riferimento	
2. Obiettivi		
3. Analisi
4. Interazioni previste
5. Prodotti attesi
6. Bibliografia

1. Contesto di riferimento
--------------------------
Con la nascita degli Estav (Ente servizi tecnici e amministrativi di area vasta)
cambia il modello organizzativo della Regione Toscana nell'ambito
dell'erogazione dei servizi sanitari .In particolare la gestione degli ordini di farmaci e di dispositivi medici
nei confronti delle aziende farmaceutiche e,pi in generale,la gestione degli ordini indirizzati
a qualunque fornitore di beni e servizi destinati alle strutture sanitarie regionali,vengono
concentrati in strutture organizzative complesse,ESTAV, che li gestiscono e li
governano per un pool di aziende sanitarie territorialmente identificate.
Attualmente le aree vaste sono tre:
1.Estav Nord-Ovest (Lucca,Pisa,Livorno,Massa)
2.Estav Centro (Firenze,Prato,Pistoia)
3.Estav Sud-Est (Siena,Arezzo,Grosseto)

Il processo di dematerializzazione del ciclo dell'ordine a fornitore impatta
fortemente su queste strutture sia dal punto di vista organizzativo che
tecnologico. In particolare con la concentrazione dei documenti di trasporto che accompagnano l'invio di prodotti  dalle aziende farmaceutiche alle Estav
diventa prioritario identificare quelle soluzioni tecnologiche  che garantiscono
facilit d'uso, rapidit di risultato, certezza e condivisione nella gestione delle
informazioni. La gestione dei DDT inviati dalle aziende farmaceutiche viene infatti concentrata in tre
soggetti che devono:

1. ricevere la merce ordinata dalle farmaceutiche e destinata alle Ausl e alle aziende ospedaliere
2. verificare che la qualit ele quantit di prodotto effettivamente consegnate siano coerenti con qualit e quantit ordinate .
3. erogare tempestivamente il servizio di consegna alle strutture sanitarie toscane rispettando gli SLA definiti.

Di particolare rilievo risulta la dematerializzazione del DDT nella fase amministrativo-gestionale
riferito alla presa in carico nei magazzini Estav  di prodotti farmaceutici che attualmente, prevedendo una
gestione esclusivamente cartacea,genera attivita a basso valore
aggiunto come quella dell'imputazione manuale dei dati, genera difficolt nella condivisione delle informazioni contenute nei documenti stessi e problemi nel processo di 
abbinamento ordine-ddt-fattura,preliminare alla liquidazione ed al pagamento delle forniture.

E necessario dunque organizzare un percorso tecnologico che preveda la ricezione telematica 
dei documenti di trasporto emessi dai fornitori delle  Estav ed indirizzati ai magazzini farmaceutici delle Estav stesse per consentire 
la  presa in carico preliminare nei gestionali dell'area vasta,senza necessit di digitare il contenuto dei documenti, dei prodotti in corso di spedizione.
Tale presa in carico preliminare, da sottoporre alla verifica fisica dei beni consegnati accompagnati dal documento cartaceo
affidato al corriere riduce sensibilmente i tempi di lavorazione,migliora la gestione del magazzino fornendo un'esatta previsione dei beni in corso di consegna,riduce l'attivit di data entry alle sole
eccezioni riscontrate nel corso della verifica fisica dei beni consegnati. 

Tale percorso deve necessariamente prevedere l'utilizzazione
1. dei moduli applicativi attualmente in uso da parte degli Estav 
2. della infrastruttura di trasporto regionale-Cart-che garantisce, essendo un sistema
pubblico di connettivita, sicurezza, rapidita, certezza.

I fornitori delle ESTAV in collaborazione con la Regione Toscana intendono definire una serie di Messaggi di Business, in 
formato Elettronico, per agevolare lo scambio documentale tra gli attori della distribuzione in generale e, 
in questo caso specifico,con  gli attori della distribuzione farmaceutica,e le Estav stesse. 

Per l'invio telematico dei DOcumenti di trasporto  intestati alle Estav dai diversi fornitori,come descritto nella presente RFC,  stato scelto un tracciato in formato 
XML, da utilizzare tramite Web Services. 
Il presente documento descrive il Messaggio definito con lo standard XML precisando il significato di tutti gli elementi(TAG) contenuti nel tracciato record. 
Il Messaggio  logicamente diviso in parti (composti a loro volta da segmenti): una parte di Testata, il Dettaglio e la 
parte di Sommario.

2. Obiettivi
------------
Nel contesto sopra indicato l'uso dell infrastruttura di cooperazione
applicativa consente agli Estav che sono dotati di un sistema informativo in grado di ricevere telematicamente
i documenti di trasporto emessi dai fornitori  di ricevere il
contenuto informativo di tali documenti senza doverli digitare 
attraverso l'uso del CART e di ottenere un 'precarico' della merce in corso di consegna.

I benefici attesi sono:

per gli Estav: 
1. ingegnerizzare la gestione del DDT emesso dal  fornitore con conseguente eliminazione
di attivit manuali di imputazione dati ,ridimensionare il ruolo del documento cartaceo che non consente certezza e rapidit e condivisibilita
di informazione  a semplice strumento di verifica fisica della merce consegnata nel momento dell'arrivo del prodotto ad opera dei corrieri.

2. il compimento di un percorso di condivisione fra gli Estav del
sistema di anagrafiche relative ai prodotti farmaceutici mediante un uso generalizzato del codice AIC e della codifica Farmadati
per i prodotti che non appartengono alla categoria dei farmaci.

per la Regione:

1. verificare in tempo reale tramite un flusso informativo i quantitativi di farmaci in arrivo dai fornitori al sistema sanitario regionale.
2. riduzione degli errori di gestione della presa in carico della merce,
3. miglioramento dell efficacia e dell efficienza nell attivita di ricezione dei prodotti e di gestione del magazzino

per i Fornitori

1) inviare in tempo reale agli amministratori Estav preposti alla presa in carico dei prodotti un flusso di dati  relativi alle merci in corso di consegna nei magazzini centralizzati
   o nelle  struttura sanitarie  territoriali aumentando la trasparenza dei processi e dei relativi tempi di consegna.


3. Analisi 
-----------------------
Da una breve analisi risulta che gli unici attori che devono cooperare sono
la Regione Toscana e le azienda Farmaceutiche. 
Regione Toscana: Soggetto che riceve i documenti di trasporto dalle aziende Farmaceutiche
Farmaceutiche: Soggetto che invia i DDT alle Estav della  Regione Toscana.



4. Interazioni previste 
-----------------------


Lo scambio di messaggi tra Regione Toscana e Azienda Farmaceutiche avviene
nel seguente modo:

Regione Toscana          Portale Dafne          Azienda Farmaceutiche
        <------------------------------------------ DESADV -----
                         ----- SENDLOG ------------------------>
                         ----- DOCACK ------------------------->

dove:

DESADV	: Documento Di Trasporto
SENDLOG : Report di trasmissione, indica l'avvenuta trasmissione del documento
DOCACK  : Notifica Ricezione, indica l'avvenuta ricezione del documento


4.1. Formato documento DESADV - Documento Di Trasporto
------------------------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2006 rel. 3 sp2 (http://www.altova.com) by Marco Molino (GXS) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:element name="DESADVMessage" type="DESADVMessage">
		<xs:annotation>
			<xs:documentation source="Description">Despatch Advice</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:complexType name="DESADVMessage">
		<xs:annotation>
			<xs:documentation source="Description">Despatch Advice</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="MessageHeader" type="MessageHeader">
				<xs:annotation>
					<xs:documentation source="Description">Message Header</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Document" type="DESADVDocument">
				<xs:annotation>
					<xs:documentation source="Description">Document</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="MessageFooter" type="MessageFooter">
				<xs:annotation>
					<xs:documentation source="Description">Message Footer</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="MessageHeader">
		<xs:annotation>
			<xs:documentation source="EasyReference">DAH</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="AddressFrom">
				<xs:annotation>
					<xs:documentation source="EasyReference">DAH.003</xs:documentation>
					<xs:documentation source="Description">Sender mailbox address</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:maxLength value="16"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="AddressTo">
				<xs:annotation>
					<xs:documentation source="EasyReference">DAH.004</xs:documentation>
					<xs:documentation source="Description">Receiver mailbox address</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:maxLength value="16"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="DocumentType">
				<xs:annotation>
					<xs:documentation source="EasyReference">DAH.001</xs:documentation>
					<xs:documentation source="Description">Document name</xs:documentation>
					<xs:documentation source="FixedValue">BOLSPE</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:maxLength value="6"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="DocumentTypeVersion">
				<xs:annotation>
					<xs:documentation source="EasyReference">DAH.002</xs:documentation>
					<xs:documentation source="Description">Document version</xs:documentation>
					<xs:documentation source="FixedValue">01</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:maxLength value="2"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="DocumentID">
				<xs:annotation>
					<xs:documentation source="EasyReference">DAH.006</xs:documentation>
					<xs:documentation source="Description">Document number</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:maxLength value="35"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="DocumentIDVersion">
				<xs:annotation>
					<xs:documentation source="EasyReference">DAH.009</xs:documentation>
					<xs:documentation source="Description">Transmission reference</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:maxLength value="14"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="CreateDate" type="xs:date">
				<xs:annotation>
					<xs:documentation source="EasyReference">DAH.005</xs:documentation>
					<xs:documentation source="Description">File creation date</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="MessageFooter">
		<xs:annotation>
			<xs:documentation source="EasyReference">DAT</xs:documentation>
			<xs:documentation source="Description">Message Footer</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="DocumentID">
				<xs:annotation>
					<xs:documentation source="EasyReference">DAT.006</xs:documentation>
					<xs:documentation source="Description">Document Number
Same value reported in INVOICMessage/MessageHeader/DocumentID</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:maxLength value="35"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="DocumentCheck">
				<xs:annotation>
					<xs:documentation source="EasyReference">DAT.007</xs:documentation>
					<xs:documentation source="Description">Checksum</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:integer">
						<xs:minInclusive value="1"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="DESADVDocument">
		<xs:annotation>
			<xs:documentation source="EasyReference">NDM</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="Status" minOccurs="0">
				<xs:annotation>
					<xs:documentation source="EasyReference">NDM.102</xs:documentation>
					<xs:documentation source="Description">Document Status</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="0"/>
						<xs:maxLength value="2"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="DespatchAdviceDate" type="xs:date">
				<xs:annotation>
					<xs:documentation source="EasyReference">NDM.103</xs:documentation>
					<xs:documentation source="Description">Document Date</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="ShipmentMeasure" type="DESADVShipmentMeasure" minOccurs="0">
				<xs:annotation>
					<xs:documentation source="EasyReference">MIS</xs:documentation>
					<xs:documentation source="Description">Shipment Measure</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="DocumentReference" type="DESADVDocumentReference" maxOccurs="2">
				<xs:annotation>
					<xs:documentation source="EasyReference">RAD</xs:documentation>
					<xs:documentation source="Description">Document Reference</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="PartnerCode" type="DESADVPartnerCode">
				<xs:annotation>
					<xs:documentation source="EasyReference">COP</xs:documentation>
					<xs:documentation source="Description">Partner Code</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="TransportInfo" type="DESADVTransportInfo">
				<xs:annotation>
					<xs:documentation source="EasyReference">TRA</xs:documentation>
					<xs:documentation source="Description">Transport Info</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Detail" type="DESADVDetail">
				<xs:annotation>
					<xs:documentation source="EasyReference">DRI</xs:documentation>
					<xs:documentation source="Description">Detail</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="DESADVDocumentReference">
		<xs:annotation>
			<xs:documentation source="EasyReference">RAD</xs:documentation>
			<xs:documentation source="Description">Document Reference</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="DocumentType">
				<xs:annotation>
					<xs:documentation source="EasyReference">RAD.130</xs:documentation>
					<xs:documentation source="Description">Document Type</xs:documentation>
					<xs:documentation source="FixedValue">ON - Ordine</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:maxLength value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="DocumentDate" type="xs:date">
				<xs:annotation>
					<xs:documentation source="EasyReference">RAD.103</xs:documentation>
					<xs:documentation source="Description">Document Date</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="DocumentNumber">
				<xs:annotation>
					<xs:documentation source="EasyReference">RAD.101</xs:documentation>
					<xs:documentation source="Description">Document Number</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:maxLength value="35"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="ItemNumber" minOccurs="0">
				<xs:annotation>
					<xs:documentation source="EasyReference">RAD.131</xs:documentation>
					<xs:documentation source="Description">Item Number</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="0"/>
						<xs:maxLength value="6"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="DocumentType2" minOccurs="0">
				<xs:annotation>
					<xs:documentation source="EasyReference">RAD.130</xs:documentation>
					<xs:documentation source="Description">Document Type</xs:documentation>
					<xs:documentation source="FixedValue">AFC - Numero Bolla riepilogativa
AEV - Numero Bolla del depositario</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="0"/>
						<xs:maxLength value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="DocumentDate2" type="xs:date" nillable="true" minOccurs="0">
				<xs:annotation>
					<xs:documentation source="EasyReference">RAD.103</xs:documentation>
					<xs:documentation source="Description">Document Date</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="DocumentNumber2" minOccurs="0">
				<xs:annotation>
					<xs:documentation source="EasyReference">RAD.101</xs:documentation>
					<xs:documentation source="Description">Document Number</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="0"/>
						<xs:maxLength value="35"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="DESADVPartnerCode">
		<xs:annotation>
			<xs:documentation source="EasyReference">COP</xs:documentation>
			<xs:documentation source="Description">Partner Code</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="SupplierID">
				<xs:annotation>
					<xs:documentation source="EasyReference">COP.302</xs:documentation>
					<xs:documentation source="Description">Supplier ID</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:maxLength value="35"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="ClientID">
				<xs:annotation>
					<xs:documentation source="EasyReference">COP.302</xs:documentation>
					<xs:documentation source="Description">Client ID</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:maxLength value="35"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="GoodsDestinationID">
				<xs:annotation>
					<xs:documentation source="EasyReference">COP.302</xs:documentation>
					<xs:documentation source="Description">Goods Destination ID</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:maxLength value="35"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="OrderOwnerID" minOccurs="0">
				<xs:annotation>
					<xs:documentation source="EasyReference">COP.302</xs:documentation>
					<xs:documentation source="Description">Order Owner ID</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="0"/>
						<xs:maxLength value="35"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="WarehouseID" minOccurs="0">
				<xs:annotation>
					<xs:documentation source="EasyReference">COP.302</xs:documentation>
					<xs:documentation source="Description">Warehouse ID</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="0"/>
						<xs:maxLength value="35"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="DESADVDetail">
		<xs:annotation>
			<xs:documentation source="EasyReference">DRI</xs:documentation>
			<xs:documentation source="Description">Detail</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="Imballo" maxOccurs="1000">
				<xs:annotation>
					<xs:documentation source="EasyReference">IMB</xs:documentation>
					<xs:documentation source="Description">Packing</xs:documentation>
				</xs:annotation>
				<xs:complexType>
					<xs:sequence>
						<xs:element name="Progressive">
							<xs:annotation>
								<xs:documentation source="EasyReference">IMB.710</xs:documentation>
								<xs:documentation source="Description">Counter</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:minLength value="1"/>
									<xs:maxLength value="12"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:element>
						<xs:element name="Type">
							<xs:annotation>
								<xs:documentation source="EasyReference">IMB.711</xs:documentation>
								<xs:documentation source="Description">Type</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:minLength value="1"/>
									<xs:maxLength value="3"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:element>
						<xs:element name="Weight" default="0">
							<xs:annotation>
								<xs:documentation source="EasyReference">IMB.606</xs:documentation>
								<xs:documentation source="Description">Weight</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:decimal">
									<xs:totalDigits value="9"/>
									<xs:fractionDigits value="3"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:element>
						<xs:element name="Qty" default="0">
							<xs:annotation>
								<xs:documentation source="EasyReference">IMB.605</xs:documentation>
								<xs:documentation source="Description">Quantity</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:decimal">
									<xs:totalDigits value="15"/>
									<xs:fractionDigits value="3"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:element>
						<xs:element name="ID">
							<xs:annotation>
								<xs:documentation source="EasyReference">IMB.712</xs:documentation>
								<xs:documentation source="Description">ID</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:minLength value="1"/>
									<xs:maxLength value="35"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:element>
						<xs:element name="Description">
							<xs:annotation>
								<xs:documentation source="EasyReference">IMB.135</xs:documentation>
								<xs:documentation source="Description">Description</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:minLength value="1"/>
									<xs:maxLength value="35"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:element>
						<xs:element name="Item" minOccurs="0" maxOccurs="9999">
							<xs:annotation>
								<xs:documentation source="EasyReference">DRI</xs:documentation>
								<xs:documentation source="Description">Item</xs:documentation>
							</xs:annotation>
							<xs:complexType>
								<xs:sequence>
									<xs:element name="ID" minOccurs="0">
										<xs:annotation>
											<xs:documentation source="EasyReference">DRI.131</xs:documentation>
											<xs:documentation source="Description">ID</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:minLength value="0"/>
												<xs:maxLength value="6"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:element name="ProductID">
										<xs:annotation>
											<xs:documentation source="EasyReference">DRI.700</xs:documentation>
											<xs:documentation source="Description">Product ID</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:minLength value="1"/>
												<xs:maxLength value="35"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:element name="ProductIDQualifier">
										<xs:annotation>
											<xs:documentation source="EasyReference">DRI.132</xs:documentation>
											<xs:documentation source="Description">Product ID Qualifier</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:minLength value="1"/>
												<xs:maxLength value="3"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:element name="ItemNotification" minOccurs="0">
										<xs:annotation>
											<xs:documentation source="EasyReference">DRI.702</xs:documentation>
											<xs:documentation source="Description">Item Notification</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:minLength value="0"/>
												<xs:maxLength value="2"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:element name="ItemReference" minOccurs="0">
										<xs:annotation>
											<xs:documentation source="EasyReference">DRI.703</xs:documentation>
											<xs:documentation source="Description">Item Reference</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:minLength value="0"/>
												<xs:maxLength value="4"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:element name="ProductDescription" minOccurs="0">
										<xs:annotation>
											<xs:documentation source="EasyReference">DRI.705</xs:documentation>
											<xs:documentation source="Description">Product Description</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:minLength value="0"/>
												<xs:maxLength value="40"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:element name="QtyID">
										<xs:annotation>
											<xs:documentation source="EasyReference">DRI.604</xs:documentation>
											<xs:documentation source="Description">Quantity ID</xs:documentation>
											<xs:documentation source="FixedValue">12 - Quantita totale spedita</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:minLength value="1"/>
												<xs:maxLength value="3"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:element name="Qty" default="0">
										<xs:annotation>
											<xs:documentation source="EasyReference">DRI.605</xs:documentation>
											<xs:documentation source="Description">Quantity</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:decimal">
												<xs:totalDigits value="15"/>
												<xs:fractionDigits value="3"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:element name="ExtraQty" type="DESADVItemExtraQty" minOccurs="0">
										<xs:annotation>
											<xs:documentation source="EasyReference">QTA</xs:documentation>
											<xs:documentation source="Description">Extra Quantity</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="Lot" type="DESADVItemLot" minOccurs="0">
										<xs:annotation>
											<xs:documentation source="EasyReference">LOT</xs:documentation>
											<xs:documentation source="Description">Lot</xs:documentation>
										</xs:annotation>
									</xs:element>
								</xs:sequence>
							</xs:complexType>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="DESADVItemExtraQty">
		<xs:annotation>
			<xs:documentation source="EasyReference">QTA</xs:documentation>
			<xs:documentation source="Description">Extra Quantity</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="QtyID1" minOccurs="0">
				<xs:annotation>
					<xs:documentation source="EasyReference">QTA.604</xs:documentation>
					<xs:documentation source="Description">Quantity ID</xs:documentation>
					<xs:documentation source="FixedValue">DIS - Quantita in sconto</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="0"/>
						<xs:maxLength value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="Qty1" default="0" minOccurs="0">
				<xs:annotation>
					<xs:documentation source="EasyReference">QTA.605</xs:documentation>
					<xs:documentation source="Description">Quantity</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:decimal">
						<xs:totalDigits value="15"/>
						<xs:fractionDigits value="5"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="UmID1" minOccurs="0">
				<xs:annotation>
					<xs:documentation source="EasyReference">QTA.602</xs:documentation>
					<xs:documentation source="Description">Unit of measure</xs:documentation>
					<xs:documentation source="FixedValue">FRE - Quantita in omaggio</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="0"/>
						<xs:maxLength value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="QtyID2" minOccurs="0">
				<xs:annotation>
					<xs:documentation source="EasyReference">QTA.604</xs:documentation>
					<xs:documentation source="Description">Quantity ID</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="0"/>
						<xs:maxLength value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="Qty2" default="0" minOccurs="0">
				<xs:annotation>
					<xs:documentation source="EasyReference">QTA.605</xs:documentation>
					<xs:documentation source="Description">Quantity</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:decimal">
						<xs:totalDigits value="15"/>
						<xs:fractionDigits value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="DESADVItemLot">
		<xs:annotation>
			<xs:documentation source="EasyReference">LOT</xs:documentation>
			<xs:documentation source="Description">Lot</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="LotNumber">
				<xs:annotation>
					<xs:documentation source="EasyReference">LOT.715</xs:documentation>
					<xs:documentation source="Description">Lot Number</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:maxLength value="20"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="ExpireDate" type="xs:date" nillable="true" minOccurs="0">
				<xs:annotation>
					<xs:documentation source="EasyReference">LOT.103</xs:documentation>
					<xs:documentation source="Description">Expiration Date</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="PiecesNumber" default="0">
				<xs:annotation>
					<xs:documentation source="EasyReference">LOT.103</xs:documentation>
					<xs:documentation source="Description">Number of pieces</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:decimal">
						<xs:totalDigits value="15"/>
						<xs:fractionDigits value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="DESADVItemDocumentReference">
		<xs:annotation>
			<xs:documentation source="EasyReference">RAD</xs:documentation>
			<xs:documentation source="Description">Document Reference</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="DocumentType">
				<xs:annotation>
					<xs:documentation source="EasyReference">RAD.130</xs:documentation>
					<xs:documentation source="Description">Document Type</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:maxLength value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="Date" type="xs:date">
				<xs:annotation>
					<xs:documentation source="EasyReference">RAD.103</xs:documentation>
					<xs:documentation source="Description">Document Date</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="DocumentNumber">
				<xs:annotation>
					<xs:documentation source="EasyReference">RAD.101</xs:documentation>
					<xs:documentation source="Description">Document Number</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:maxLength value="35"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="DESADVShipmentMeasure">
		<xs:annotation>
			<xs:documentation source="EasyReference">MIS</xs:documentation>
			<xs:documentation source="Description">Shipment Measure</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="UmID1" minOccurs="0">
				<xs:annotation>
					<xs:documentation source="EasyReference">MIS.602</xs:documentation>
					<xs:documentation source="Description">Unit of measure ID</xs:documentation>
					<xs:documentation source="FixedValue">KGM</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="0"/>
						<xs:maxLength value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="TotalWeight" default="0" minOccurs="0">
				<xs:annotation>
					<xs:documentation source="EasyReference">MIS.603</xs:documentation>
					<xs:documentation source="Description">Total Weight</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:decimal">
						<xs:totalDigits value="15"/>
						<xs:fractionDigits value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="UmID2" minOccurs="0">
				<xs:annotation>
					<xs:documentation source="EasyReference">MIS.602</xs:documentation>
					<xs:documentation source="Description">Unit of measure ID</xs:documentation>
					<xs:documentation source="FixedValue">NMP</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="0"/>
						<xs:maxLength value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="TotalParcelsNumber" default="0" minOccurs="0">
				<xs:annotation>
					<xs:documentation source="EasyReference">MIS.603</xs:documentation>
					<xs:documentation source="Description">Total Number of Parcels</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:decimal">
						<xs:totalDigits value="15"/>
						<xs:fractionDigits value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="UmID3" minOccurs="0">
				<xs:annotation>
					<xs:documentation source="EasyReference">MIS.602</xs:documentation>
					<xs:documentation source="Description">Unit of measure ID</xs:documentation>
					<xs:documentation source="FixedValue">NAR</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="0"/>
						<xs:maxLength value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="TotalItemsNumber" default="0" minOccurs="0">
				<xs:annotation>
					<xs:documentation source="EasyReference">MIS.603</xs:documentation>
					<xs:documentation source="Description">Total Number of Items</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:decimal">
						<xs:totalDigits value="15"/>
						<xs:fractionDigits value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="UmID4" minOccurs="0">
				<xs:annotation>
					<xs:documentation source="EasyReference">MIS.602</xs:documentation>
					<xs:documentation source="Description">Unit of measure ID</xs:documentation>
					<xs:documentation source="FixedValue">PCE</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="0"/>
						<xs:maxLength value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="TotalPacketsNumber" default="0" minOccurs="0">
				<xs:annotation>
					<xs:documentation source="EasyReference">MIS.603</xs:documentation>
					<xs:documentation source="Description">Total Number of Packets</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:decimal">
						<xs:totalDigits value="15"/>
						<xs:fractionDigits value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="DESADVTransportInfo">
		<xs:annotation>
			<xs:documentation source="EasyReference">TRA</xs:documentation>
			<xs:documentation source="Description">Transport Info</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="ReturnCode" minOccurs="0">
				<xs:annotation>
					<xs:documentation source="EasyReference">TRA.410</xs:documentation>
					<xs:documentation source="Description">Return Code</xs:documentation>
					<xs:documentation source="FixedValue">See table 410</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="0"/>
						<xs:maxLength value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="ShipmentDate" type="xs:date" nillable="true" minOccurs="0">
				<xs:annotation>
					<xs:documentation source="EasyReference">TRA.103</xs:documentation>
					<xs:documentation source="Description">Shipment Date</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="ShipmentHour" type="xs:time" nillable="true" minOccurs="0">
				<xs:annotation>
					<xs:documentation source="EasyReference">TRA.106</xs:documentation>
					<xs:documentation source="Description">Shipment Hour</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="DeliveryDate" type="xs:date" nillable="true">
				<xs:annotation>
					<xs:documentation source="EasyReference">TRA.103</xs:documentation>
					<xs:documentation source="Description">Delivery Date</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="DeliveryHour" type="xs:time" nillable="true" minOccurs="0">
				<xs:annotation>
					<xs:documentation source="EasyReference">TRA.106</xs:documentation>
					<xs:documentation source="Description">Delivery Hour</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="CarrierName">
				<xs:annotation>
					<xs:documentation source="EasyReference">TRA.401</xs:documentation>
					<xs:documentation source="Description">Carrier Name</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:maxLength value="35"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="TransportType" minOccurs="0">
				<xs:annotation>
					<xs:documentation source="EasyReference">TRA.402</xs:documentation>
					<xs:documentation source="Description">Transport Type</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="0"/>
						<xs:maxLength value="17"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="ReturnInfo" minOccurs="0">
				<xs:annotation>
					<xs:documentation source="EasyReference">TRA.135</xs:documentation>
					<xs:documentation source="Description">Return Info</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="0"/>
						<xs:maxLength value="35"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="Cause" minOccurs="0">
				<xs:annotation>
					<xs:documentation source="EasyReference">TRA.135</xs:documentation>
					<xs:documentation source="Description">Cause</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="0"/>
						<xs:maxLength value="35"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
</xs:schema>



410 - Termini di Resa	
	
Code	Description
CAF		Cost and freight to destination
CAI		Cost and insurance to named destination
CIF		Cost, insurance, freight to named destination
CIP		Freight, carriage, insurance to destination
DAF		Delivery at frontier  named place (Reso frontiera)
DCP		Freight, carriage paid to destination
DDP		Delivered duty paid to destination
EXQ		Ex Quay - duty paid, named port (Reso banchina)
EXS		Ex ship - named port of destination
EXW		Ex works (franco fabbrica)
FAS		Free alongside ship-named port
FCA		Free carrier-named point
FCI		Freight carriage and insurance paid to
FCP		Freight carriage and paid to
FCT		Freight carriage and insurance paid to
FOA		FOB airport-named airport of departure
FOB		Free on board-named port of shipment
FOR		Free on rail-named departure point (franco vagone)
FOS		Free on board stowed named port of shipment
FOT		Free on truck-named departure point
FPC		Free in pipeline connection named place
ZZZ		Mutually defined



4.2. Formato documento SENDLOG - Report di trasmissione
-------------------------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2006 sp2 U (http://www.altova.com) by Marco Molino (GXS) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:element name="SendLogMessage" type="SendLogMessage">
		<xs:annotation>
			<xs:documentation>Send Log</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:complexType name="SendLogMessage">
		<xs:annotation>
			<xs:documentation>Send Log</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="MessageHeader" type="MessageHeader"/>
			<xs:element name="Document" type="SendLogDocument"/>
			<xs:element name="MessageFooter" type="MessageFooter"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="MessageHeader">
		<xs:annotation>
			<xs:documentation>DAH</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="AddressFrom">
				<xs:annotation>
					<xs:documentation>DAH.003</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:maxLength value="16"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="AddressTo">
				<xs:annotation>
					<xs:documentation>DAH.004</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:maxLength value="16"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="DocumentType">
				<xs:annotation>
					<xs:documentation>DAH.001</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:maxLength value="6"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="DocumentTypeVersion">
				<xs:annotation>
					<xs:documentation>DAH.002</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:maxLength value="2"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="DocumentID">
				<xs:annotation>
					<xs:documentation>DAH.006</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:maxLength value="35"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="DocumentIDVersion">
				<xs:annotation>
					<xs:documentation>DAH.009</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:maxLength value="14"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="CreateDate" type="xs:date">
				<xs:annotation>
					<xs:documentation>DAH.005</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="MessageFooter">
		<xs:annotation>
			<xs:documentation>DAT</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="DocumentID">
				<xs:annotation>
					<xs:documentation>DAT.006</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:maxLength value="35"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="DocumentCheck">
				<xs:annotation>
					<xs:documentation>DAT.007</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:positiveInteger">
						<xs:minInclusive value="1"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="SendLogDocument">
		<xs:annotation>
			<xs:documentation>Send Log Document</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="InputFilename">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="0"/>
						<xs:maxLength value="200"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="Detail" type="SendLogDetail"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="SendLogDetail">
		<xs:annotation>
			<xs:documentation>Send Log Detail - Risultato dell'elaborazione di un singolo documento</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="Item" maxOccurs="unbounded">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="ReferenceDocumentID">
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:minLength value="0"/>
									<xs:maxLength value="35"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:element>
						<xs:element name="ReferenceDocumentType">
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:minLength value="1"/>
									<xs:maxLength value="6"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:element>
						<xs:element name="Status" type="xs:long"/>
						<xs:element name="Error" type="SendLogDetailError" minOccurs="0" maxOccurs="unbounded"/>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="SendLogDetailError">
		<xs:annotation>
			<xs:documentation>Send Log Detail Error</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="Type">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="0"/>
						<xs:maxLength value="50"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="RowNumber" type="xs:long"/>
			<xs:element name="Description">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="0"/>
						<xs:maxLength value="200"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
</xs:schema>


4.3. Formato documento DOCACK - Notifica Ricezione
--------------------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2006 rel. 3 sp2 (http://www.altova.com) by Marco Molino (GXS) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:element name="DocAckMessage" type="DocAckMessage">
		<xs:annotation>
			<xs:documentation>Doc Ack</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:complexType name="DocAckMessage">
		<xs:annotation>
			<xs:documentation>Doc Ack</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="MessageHeader" type="MessageHeader"/>
			<xs:element name="Document" type="Document"/>
			<xs:element name="MessageFooter" type="MessageFooter"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="MessageHeader">
		<xs:annotation>
			<xs:documentation>DAH</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="AddressFrom">
				<xs:annotation>
					<xs:documentation>DAH.003</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:maxLength value="16"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="AddressTo">
				<xs:annotation>
					<xs:documentation>DAH.004</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:maxLength value="16"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="DocumentType">
				<xs:annotation>
					<xs:documentation>DAH.001</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:maxLength value="6"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="DocumentTypeVersion">
				<xs:annotation>
					<xs:documentation>DAH.002</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:maxLength value="2"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="DocumentID">
				<xs:annotation>
					<xs:documentation>DAH.006</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:maxLength value="35"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="DocumentIDVersion">
				<xs:annotation>
					<xs:documentation>DAH.009</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:maxLength value="14"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="CreateDate" type="xs:date">
				<xs:annotation>
					<xs:documentation>DAH.005</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="MessageFooter">
		<xs:annotation>
			<xs:documentation>DAT</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="DocumentID">
				<xs:annotation>
					<xs:documentation>DAT.006</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:maxLength value="35"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="DocumentCheck">
				<xs:annotation>
					<xs:documentation>DAT.007</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:positiveInteger">
						<xs:minInclusive value="1"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="Document">
		<xs:annotation>
			<xs:documentation>Document</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="ID" type="xs:long"/>
			<xs:element name="FromName" type="xs:string"/>
			<xs:element name="FromEDIAddress" type="xs:string"/>
			<xs:element name="ToName" type="xs:string"/>
			<xs:element name="ToEDIAddress" type="xs:string"/>
			<xs:element name="DocumentID" type="xs:long"/>
			<xs:element name="DocumentSNRF" type="xs:string"/>
			<xs:element name="DocumentAppName" type="xs:string"/>
			<xs:element name="DocumentEDIName" type="xs:string"/>
			<xs:element name="SendDateTime" type="xs:dateTime"/>
			<xs:element name="RereiveDateTime" type="xs:dateTime"/>
			<xs:element name="Status" type="xs:string"/>
		</xs:sequence>
	</xs:complexType>
</xs:schema>




5. Prodotti attesi
------------------

La dematerializzazione del documento di trasporto emesso nei confronti delle Estav Toscane dai fornitori e il conseguente invio telematico ai gestionali tramite il Cart
DDT dematerializzato riferito alle consegne  di prodotti farmaceutici e dispositivi medici.E' opportuno sottolineare che il documento cartaceo rester ed accompagner la fase logistica 
ma che l'invio telematico del documento DDT elettronico consentir ai gestori dei rifornimenti una presa in carico  preliminare dei prodotti inviati,senza necessit di imputare manualmente
il contenuto dei DDT.
La merce consegnata verr sottoposta come di consueto a verifica fisica.Se le quantit di prodotto saranno confermate sar sufficiente validare il contenuto dei documenti 
ricevuti telematicamente ed aggiornare definitivamente le scorte di magazzino con una notevole riduzione dei tempi di gestione e degli errori di imputazione dati.



6. Bibliografia
---------------

Documenti rilasciati dal Centro Nazionale per lInformatica nella Pubblica
Amministrazione (CNIPA): [CN1] SPC, Sistema pubblico di cooperazione:
Architettura, Versione 1.0, CNIPA, 25 Novembre 2004. [CN2] SPC, Sistema
pubblico di cooperazione: Porta di Dominio, Versione 1.0, CNIPA, 14 Ottobre
2005

Documenti rilasciati dal W3C:
[W1] D. Box, D. Ehnebuske, G. Kakivaya, A. Layman, N. Mendelsohn, H. F. Nielsen,
S. Thatte, D. Winer, Simple Object Access Protocolo (SOAP) 1.1, W3C, 8 Maggio
2000 [W2] E. Christensen, F. Curbera, G. Meredith, S. Weerawarena, Web Services
Description Language (WSDL) 1.1, W3C, 15 Marzo 200
